<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0052)http://prod.clearassessments.com/otp/admin/users.jsf -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
                <!-- HTTP 1.1 -->
        <meta http-equiv="Cache-Control" content="no-store">
        <!-- HTTP 1.0 -->
        <meta http-equiv="Pragma" content="no-cache">
        <!-- Prevents caching at the Proxy Server -->
        <meta http-equiv="Expires" content="0">
        
        <meta name="generator" content="AppFuse 2.0"> <!-- leave this for stats please -->
        <link rel="icon" href="http://prod.clearassessments.com/otp/images/favicon.ico">
        <title>User Settings | Clear Profiling</title>

        <link rel="stylesheet" type="text/css" media="all" href="styles/puzzlewithstyle/theme.css">
        <link rel="stylesheet" type="text/css" media="all" href="styles/puzzlewithstyle/myfaces.css">
        <link rel="stylesheet" type="text/css" media="print" href="styles/puzzlewithstyle/print.css">

        <script type="text/javascript" src="./User Settings   Clear Profiling_files/prototype.js"></script>
        <script type="text/javascript" src="./User Settings   Clear Profiling_files/scriptaculous.js"></script><script type="text/javascript" src="./User Settings   Clear Profiling_files/builder.js"></script><script type="text/javascript" src="./User Settings   Clear Profiling_files/effects.js"></script><script type="text/javascript" src="./User Settings   Clear Profiling_files/dragdrop.js"></script><script type="text/javascript" src="./User Settings   Clear Profiling_files/controls.js"></script><script type="text/javascript" src="./User Settings   Clear Profiling_files/slider.js"></script><script type="text/javascript" src="./User Settings   Clear Profiling_files/sound.js"></script>
        <script type="text/javascript" src="./User Settings   Clear Profiling_files/global.js"></script>
        <meta name="menu" content="UserMenu"><meta name="heading" content="User Profile">
    </head>
<body>

    <div id="page">
        <div id="header" class="clearfix">
            



















<div id="branding">
    <img src="images/logo.png" />
</div>
<div id="nav">
                <div class="wrapper">
                    <h2 class="accessibility">Navigation</h2>
                    


















<ul id="primary-nav" class="menuList">
    <li class="pad">&nbsp;</li>
    
    
           
                          <li>
                          <a href="./Main Menu   Clear Profiling_files/Main Menu   Clear Profiling.htm" title="Home">Home</a>
            
          </li>

           
                                                                                                                             
        <li class="menubar">
          <a href="javascript:void(0)" title="User Menu" >My Tests</a>
    
                      <ul> 
        
                                       
                          <li>
                          <a href="http://prod.clearassessments.com/otp/userForm" title="Edit Profile">Edit Profile</a>
		
          </li>
                                           
                          <li class="last">
                          <a href="http://prod.clearassessments.com/otp/userTestInstance" title="My Tests">My Tests</a>
            
          </li>
            </ul>
                            
          </li>
              
                                                                                                                                                                                                                     
        <li class="menubar">
          <a href="http://prod.clearassessments.com/otp/admin/users" title="Administration" style="width: 120px" class="current">Administration</a>
    
                      <ul> 
        
                                       
                          <li>
                          <a href="http://prod.clearassessments.com/otp/admin/users" title="View Users">View Users</a>
            
          </li>
                                           
                          <li>
                          <a href="http://prod.clearassessments.com/otp/admin/activeUsers" title="Current Users">Current Users</a>
            
          </li>
                                           
                          <li>
                          <a href="http://prod.clearassessments.com/otp/selectFile" title="Upload Users">Upload Users</a>
            
          </li>
                                           
                          <li class="last">
                          <a href="http://prod.clearassessments.com/otp/admin/adminTestInstance" title="Manage User Test">Manage User Test</a>
            
          </li>
            </ul>
                            
          </li>
              
    
    
          
            
    
</ul>


                </div>
                <hr>
          </div>
           <!-- end nav -->
            
       <!-- Start user profile-->
       <div class="userprofile_content">
       Username here | <img src="images/logout-icon.png" align="absmiddle" /> <a href="http://prod.clearassessments.com/otp/logout" title="Logout">Logout</a>
       </div>
<hr>



        </div>

        <div id="content" class="clearfix">
            <div id="main">
                





                <h1>User Profile</h1>
                <div class="separator"></div><form id="userForm" name="userForm" method="post" action="http://prod.clearassessments.com/otp/userForm.jsf" enctype="application/x-www-form-urlencoded" onsubmit="return validateUserForm(this)"><input type="hidden" id="userForm:id" name="userForm:id" value="6"><input type="hidden" id="userForm:version" name="userForm:version" value="0"><input type="hidden" id="userForm:originalPassword" name="userForm:originalPassword" value="a2b1f2a38b230182e4b80fbf3945cd18ebdd37ae"> <input type="hidden" name="from" value="list">
                <ul><li><span class="buttonBar right"><input id="userForm:j_id5" name="userForm:j_id5" type="submit" value="Save" class="button">
                <input id="userForm:j_id6" name="userForm:j_id6" type="submit" value="Delete" onclick="var cf = function(){bCancel=true; return confirmDelete(&#39;User&#39;)};var oamSF = function(){};return (cf.apply(this, [])==false)? false : oamSF.apply(this, []);" class="button"> <input id="userForm:j_id7" name="userForm:j_id7" type="submit" value="Cancel" onclick="bCancel=true;var cf = function(){bCancel=true};var oamSF = function(){};return (cf.apply(this, [])==false)? false : oamSF.apply(this, []);" class="button"></span></li><li><span class="info">Please update this user's information.</span></li>
                <table cellpadding="0" cellspacing="0" border="0" class="userform">
                <tr>
                <td><li><label class="desc" for="userForm:username">Username <span class="req">*</span></label></td>
                <td><input id="userForm:username" name="userForm:username" type="text" value="user2liberty" class="text large" style=""></li></td>
                </tr><tr>
                <td><li><label class="desc" for="userForm:password">Password <span class="req">*</span></label></td>
                <td><input type="password" id="userForm:password" name="userForm:password" value="a2b1f2a38b230182e4b80fbf3945cd18ebdd37ae" class="text medium" style="">
                &nbsp; &nbsp; &nbsp; 
                <label class="desc" for="userForm:confirmPassword">Confirm Password <span class="req">*</span></label></td>
                <td><input type="password" id="userForm:confirmPassword" name="userForm:confirmPassword" value="a2b1f2a38b230182e4b80fbf3945cd18ebdd37ae" class="text medium" style=""></li></td>
                </tr><tr>
                <td><li><label class="desc" for="userForm:passwordHint">Password Hint <span class="req">*</span></label></td>
                <td><input id="userForm:passwordHint" name="userForm:passwordHint" type="text" value="Liberty" class="text large" style=""></li></td>
                </tr><tr>
                <td><li><label class="desc" for="userForm:firstName">First Name <span class="req">*</span></label></td>
                <td><input id="userForm:firstName" name="userForm:firstName" type="text" value="User2" maxlength="50" class="text medium"></td>
                </tr><tr>
                <td><li><label class="desc" for="userForm:lastName">Last Name <span class="req">*</span></label></td>
                <td><input id="userForm:lastName" name="userForm:lastName" type="text" value="Liberty" maxlength="50" class="text medium"></li></td>
                </tr><tr>
                <td><li><label class="desc" for="userForm:email">E-Mail <span class="req">*</span></label></td>
                <td><input id="userForm:email" name="userForm:email" type="text" value="user2@liberty.coms" class="text medium"></td>
                </tr><tr>
                <td><li><label class="desc" for="userForm:phoneNumber">Phone Number</label></td>
                <td><input id="userForm:phoneNumber" name="userForm:phoneNumber" type="text" value="" class="text medium"></li></td>
                </tr><tr>
                <td><li><label class="desc" for="userForm:website">Website <span class="req">*</span></label></td>
                <td><input id="userForm:website" name="userForm:website" type="text" value="http://www.clearassessments.com" class="text large"></li><li></td>
                </tr><tr>
                <td class="userform_section" colspan="2"><li><label class="desc">Address</label></td>
                </tr><tr>
                <td><label for="userForm:address">Address</label><!--v:commonsValidator client="true" type="required" arg="City"/--></td>
                <td><input id="userForm:address" name="userForm:address" type="text" value="" class="text large"></td>
                </tr><tr>
                <td><label for="userForm:city">City</label><!--v:commonsValidator client="true" type="required" arg="State"/--></td>
                <td><input id="userForm:city" name="userForm:city" type="text" value="" class="text medium"></td>
                </tr><tr>
                <td><label for="userForm:province">State</label><!--v:commonsValidator client="true" type="required" arg="Zip"/-->
<!--t:validateRegExpr pattern="^\d{5}\d*$"/--></td>
                <td><input id="userForm:province" name="userForm:province" type="text" value="" class="text state"></td>
                </tr><tr>
                <td><label for="userForm:postalCode">Zip</label></td>
				<td><input id="userForm:postalCode" name="userForm:postalCode" type="text" value="" class="text medium"></td>
                </tr><tr>
                <td><label for="userForm:country">Country <span class="req">*</span></label></td>
                <td><select id="userForm:country" name="userForm:country" size="1" class="select"><option value=""></option><option value="AL">Albania</option><option value="DZ">Algeria</option><option value="AR">Argentina</option><option value="AU">Australia</option><option value="AT">Austria</option><option value="BH">Bahrain</option><option value="BY">Belarus</option><option value="BE">Belgium</option><option value="BO">Bolivia</option><option value="BA">Bosnia and Herzegovina</option><option value="BR">Brazil</option><option value="BG">Bulgaria</option><option value="CA">Canada</option><option value="CL">Chile</option><option value="CN">China</option><option value="CO">Colombia</option><option value="CR">Costa Rica</option><option value="HR">Croatia</option><option value="CY">Cyprus</option><option value="CZ">Czech Republic</option><option value="DK">Denmark</option><option value="DO">Dominican Republic</option><option value="EC">Ecuador</option><option value="EG">Egypt</option><option value="SV">El Salvador</option><option value="EE">Estonia</option><option value="FI">Finland</option><option value="FR" selected="selected">France</option><option value="DE">Germany</option><option value="GR">Greece</option><option value="GT">Guatemala</option><option value="HN">Honduras</option><option value="HK">Hong Kong</option><option value="HU">Hungary</option><option value="IS">Iceland</option><option value="IN">India</option><option value="ID">Indonesia</option><option value="IQ">Iraq</option><option value="IE">Ireland</option><option value="IL">Israel</option><option value="IT">Italy</option><option value="JP">Japan</option><option value="JO">Jordan</option><option value="KW">Kuwait</option><option value="LV">Latvia</option><option value="LB">Lebanon</option><option value="LY">Libya</option><option value="LT">Lithuania</option><option value="LU">Luxembourg</option><option value="MK">Macedonia</option><option value="MY">Malaysia</option><option value="MT">Malta</option><option value="MX">Mexico</option><option value="ME">Montenegro</option><option value="MA">Morocco</option><option value="NL">Netherlands</option><option value="NZ">New Zealand</option><option value="NI">Nicaragua</option><option value="NO">Norway</option><option value="OM">Oman</option><option value="PA">Panama</option><option value="PY">Paraguay</option><option value="PE">Peru</option><option value="PH">Philippines</option><option value="PL">Poland</option><option value="PT">Portugal</option><option value="PR">Puerto Rico</option><option value="QA">Qatar</option><option value="RO">Romania</option><option value="RU">Russia</option><option value="SA">Saudi Arabia</option><option value="RS">Serbia</option><option value="CS">Serbia and Montenegro</option><option value="SG">Singapore</option><option value="SK">Slovakia</option><option value="SI">Slovenia</option><option value="ZA">South Africa</option><option value="KR">South Korea</option><option value="ES">Spain</option><option value="SD">Sudan</option><option value="SE">Sweden</option><option value="CH">Switzerland</option><option value="SY">Syria</option><option value="TW">Taiwan</option><option value="TH">Thailand</option><option value="TN">Tunisia</option><option value="TR">Turkey</option><option value="UA">Ukraine</option><option value="AE">United Arab Emirates</option><option value="GB">United Kingdom</option><option value="US">United States</option><option value="UY">Uruguay</option><option value="VE">Venezuela</option><option value="VN">Vietnam</option><option value="YE">Yemen</option></select>
                </td>
                </tr>
                </tr><tr>
                <td class="userform_section" colspan="2"><legend>Account Settings</legend></td>
                </tr><tr>
                <td colspan="2"><input id="userForm:enabled" type="checkbox" name="userForm:enabled" checked="checked" value="true" class="checkbox"><label class="choice" for="userForm:enabled">Enabled</label></td>
                </tr><tr>
                <td colspan="2"><input id="userForm:accountExpired" type="checkbox" name="userForm:accountExpired" value="true" class="checkbox"><label class="choice" for="userForm:accountExpired">Expired</label></td>
                </tr><tr>
                <td colspan="2"><input id="userForm:accountLocked" type="checkbox" name="userForm:accountLocked" value="true" class="checkbox"><label class="choice" for="userForm:accountLocked">Locked</label></td>
                </tr><tr>
                <td colspan="2"><input id="userForm:credentialsExpired" type="checkbox" name="userForm:credentialsExpired" value="true" class="checkbox"><label class="choice" for="userForm:credentialsExpired">Password Expired</label></fieldset></li></td>
                </tr><tr>
                <td class="userform_section" colspan="2"><legend>Assign Roles</legend></td>
                </tr><tr>
                <td><table id="userForm:userRoles"><tbody><tr><td><input id="userForm:userRoles:0" type="checkbox" name="userForm:userRoles" value="ROLE_ADMIN"><label for="userForm:userRoles:0">&nbsp;ROLE_ADMIN</label></td><td><input id="userForm:userRoles:1" type="checkbox" name="userForm:userRoles" checked="checked" value="ROLE_USER"><label for="userForm:userRoles:1">&nbsp;ROLE_USER</label></td></tr></tbody></table></td>
                </tr><tr>
                <td class="userform_section" colspan="2"><legend>Assigned Organization</legend></td>
                </tr><tr>
                <td><select id="userForm:userOrg" name="userForm:userOrg" size="1" disabled="disabled"><option value="ALL">ALL</option><option value="Test Organization">Test Organization</option><option value="Liberty" selected="selected">Liberty</option></select></td>
                </tr><tr>
                <td class="userform_section" colspan="2">&nbsp;</td>
                </tr></table>
                
                <input type="hidden" id="userForm:j_id98" name="userForm:j_id98" value="3"><input type="hidden" id="userForm:j_id99" name="userForm:j_id99" value="Liberty"><input type="hidden" id="userForm:j_id100" name="userForm:j_id100" value="Liberty Test Organization"></fieldset></li>
                <li><span class="buttonBar bottom"><input id="userForm:j_id105" name="userForm:j_id105" type="submit" value="Save" class="button">
                <input id="userForm:j_id106" name="userForm:j_id106" type="submit" value="Delete" onclick="var cf = function(){bCancel=true; return confirmDelete(&#39;User&#39;)};var oamSF = function(){};return (cf.apply(this, [])==false)? false : oamSF.apply(this, []);" class="button"> <input id="userForm:j_id107" name="userForm:j_id107" type="submit" value="Cancel" onclick="bCancel=true;var cf = function(){bCancel=true};var oamSF = function(){};return (cf.apply(this, [])==false)? false : oamSF.apply(this, []);" class="button"> <input id="userForm:loadUser" name="userForm:loadUser" type="submit" value="Hidden" style="display:none"></span></li></ul><input type="hidden" name="userForm_SUBMIT" value="1"><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value=""></form><script type="text/javascript" language="Javascript1.1">//<![CDATA[


function userForm_required() { 
this[0] = new Array("userForm:username", "Username is a required field.", new Function("x", "return {arg:'Username'}[x];"));
this[1] = new Array("userForm:password", "Password is a required field.", new Function("x", "return {arg:'Password'}[x];"));
this[2] = new Array("userForm:confirmPassword", "Confirm Password is a required field.", new Function("x", "return {arg:'Confirm Password'}[x];"));
this[3] = new Array("userForm:passwordHint", "Password Hint is a required field.", new Function("x", "return {arg:'Password Hint'}[x];"));
this[4] = new Array("userForm:firstName", "First Name is a required field.", new Function("x", "return {arg:'First Name'}[x];"));
this[5] = new Array("userForm:lastName", "Last Name is a required field.", new Function("x", "return {arg:'Last Name'}[x];"));
this[6] = new Array("userForm:email", "E-Mail is a required field.", new Function("x", "return {arg:'E-Mail'}[x];"));
this[7] = new Array("userForm:country", "Country is a required field.", new Function("x", "return {arg:'Country'}[x];"));
        }
function userForm_email() { 
this[0] = new Array("userForm:email", "E-Mail is an invalid e-mail address.", new Function("x", "return {arg:'E-Mail'}[x];"));
        }
var bCancel = false;
function validateUserForm(form) {
        var bValid = true;
        var sFormName = jcv_retrieveFormName(form);
        if ((bValid && !bCancel && ("userForm" == sFormName))) {
                bValid = (validateRequired(form) && validateEmail(form));
        
}
        return bValid;
}
/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
    /*$RCSfile: validateRequired.js,v $ $Rev: 478676 $ $Date: 2006-11-23 21:35:44 +0000 (Thu, 23 Nov 2006) $ */
    /**
    *  Check to see if fields must contain a value.
    * Fields are not checked if they are disabled.
    *
    * @param form The form validation is taking place on.
    */

    function validateRequired(form) {
        var isValid = true;
        var focusField = null;
        var i = 0;
        var fields = new Array();

        var oRequired = eval('new ' + jcv_retrieveFormName(form) +  '_required()');

        for (var x in oRequired) {
            if (!jcv_verifyArrayElement(x, oRequired[x])) {
                continue;
            }
            var field = form[oRequired[x][0]];

            if (!jcv_isFieldPresent(field)) {
                fields[i++] = oRequired[x][1];
                isValid=false;
            } else if ((field.type == 'hidden' ||
                field.type == 'text' ||
                field.type == 'textarea' ||
                field.type == 'file' ||
                field.type == 'radio' ||
                field.type == 'checkbox' ||
                field.type == 'select-one' ||
                field.type == 'password')) {

                var value = '';
                // get field's value
                if (field.type == "select-one") {
                    var si = field.selectedIndex;
                    if (si >= 0) {
                        value = field.options[si].value;
                    }
                } else if (field.type == 'radio' || field.type == 'checkbox') {
                    if (field.checked) {
                        value = field.value;
                    }
                } else {
                    value = field.value;
                }

                if (trim(value).length == 0) {

                    if ((i == 0) && (field.type != 'hidden')) {
                        focusField = field;
                    }
                    fields[i++] = oRequired[x][1];
                    isValid = false;
                }
            } else if (field.type == "select-multiple") { 
                var numOptions = field.options.length;
                lastSelected=-1;
                for(loop=numOptions-1;loop>=0;loop--) {
                    if(field.options[loop].selected) {
                        lastSelected = loop;
                        value = field.options[loop].value;
                        break;
                    }
                }
                if(lastSelected < 0 || trim(value).length == 0) {
                    if(i == 0) {
                        focusField = field;
                    }
                    fields[i++] = oRequired[x][1];
                    isValid=false;
                }
            } else if ((field.length > 0) && (field[0].type == 'radio' || field[0].type == 'checkbox')) {
                isChecked=-1;
                for (loop=0;loop < field.length;loop++) {
                    if (field[loop].checked) {
                        isChecked=loop;
                        break; // only one needs to be checked
                    }
                }
                if (isChecked < 0) {
                    if (i == 0) {
                        focusField = field[0];
                    }
                    fields[i++] = oRequired[x][1];
                    isValid=false;
                }
            }   
        }
        if (fields.length > 0) {
           jcv_handleErrors(fields, focusField);
        }
        return isValid;
    }
    
    // Trim whitespace from left and right sides of s.
    function trim(s) {
        return s.replace( /^\s*/, "" ).replace( /\s*$/, "" );
    }

/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
    /*$RCSfile: validateEmail.js,v $ $Rev: 478676 $ $Date: 2006-11-23 21:35:44 +0000 (Thu, 23 Nov 2006) $ */
    /**
    * Check to see if fields are a valid email address.
    * Fields are not checked if they are disabled.
    * @param form The form validation is taking place on.
    */
    function validateEmail(form) {
        var bValid = true;
        var focusField = null;
        var i = 0;
        var fields = new Array();

        var oEmail = eval('new ' + jcv_retrieveFormName(form) +  '_email()');

        for (var x in oEmail) {
            if (!jcv_verifyArrayElement(x, oEmail[x])) {
                continue;
            }
            var field = form[oEmail[x][0]];
            if (!jcv_isFieldPresent(field)) {
              continue;
            }
            if ((field.type == 'hidden' || 
                 field.type == 'text' ||
                 field.type == 'textarea') &&
                (field.value.length > 0)) {
                if (!jcv_checkEmail(field.value)) {
                    if (i == 0) {
                        focusField = field;
                    }
                    fields[i++] = oEmail[x][1];
                    bValid = false;
                }
            }
        }
        if (fields.length > 0) {
            jcv_handleErrors(fields, focusField);
        }
        return bValid;
    }

    /**
     * Reference: Sandeep V. Tamhankar (stamhankar@hotmail.com),
     * http://javascript.internet.com
     */
    function jcv_checkEmail(emailStr) {
        if (emailStr.length == 0) {
            return true;
        }
        // TLD checking turned off by default
        var checkTLD=0;
        var knownDomsPat=/^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/;
        var emailPat=/^(.+)@(.+)$/;
        var specialChars="\\(\\)><@,;:\\\\\\\"\\.\\[\\]";
        var validChars="\[^\\s" + specialChars + "\]";
        var quotedUser="(\"[^\"]*\")";
        var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;
        var atom=validChars + '+';
        var word="(" + atom + "|" + quotedUser + ")";
        var userPat=new RegExp("^" + word + "(\\." + word + ")*$");
        var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$");
        var matchArray=emailStr.match(emailPat);
        if (matchArray==null) {
            return false;
        }
        var user=matchArray[1];
        var domain=matchArray[2];
        for (i=0; i<user.length; i++) {
            if (user.charCodeAt(i)>127) {
                return false;
            }
        }
        for (i=0; i<domain.length; i++) {
            if (domain.charCodeAt(i)>127) {
                return false;
            }
        }
        if (user.match(userPat)==null) {
            return false;
        }
        var IPArray=domain.match(ipDomainPat);
        if (IPArray!=null) {
            for (var i=1;i<=4;i++) {
                if (IPArray[i]>255) {
                    return false;
                }
            }
            return true;
        }
        var atomPat=new RegExp("^" + atom + "$");
        var domArr=domain.split(".");
        var len=domArr.length;
        for (i=0;i<len;i++) {
            if (domArr[i].search(atomPat)==-1) {
                return false;
            }
        }
        if (checkTLD && domArr[domArr.length-1].length!=2 && 
            domArr[domArr.length-1].search(knownDomsPat)==-1) {
            return false;
        }
        if (len<2) {
            return false;
        }
        return true;
    }

/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to you under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

  /**
   * This is a place holder for common utilities used across the javascript validation
   *
   */

  /**
   * Retreive the name of the form
   * @param form The form validation is taking place on.
   */
  function jcv_retrieveFormName(form) {

      // Please refer to Bugs 31534, 35127, 35294, 37315 & 38159
      // for the history of the following code

      var formName;

      if (form.getAttributeNode) {
          if (form.getAttributeNode("id") && form.getAttributeNode("id").value) {
              formName = form.getAttributeNode("id").value;
          } else {
              formName = form.getAttributeNode("name").value;
          }
      } else if (form.getAttribute) {
          if (form.getAttribute("id")) {
              formName = form.getAttribute("id");
          } else {
              formName = form.attributes["name"];
          }
      } else {
          if (form.id) {
              formName = form.id;
          } else {
              formName = form.name;
          }
      }

      re = /:/gi;
      return formName.replace(re, "_");
      
  }  

  /**
   * Handle error messages.
   * @param messages Array of error messages.
   * @param focusField Field to set focus on.
   */
  function jcv_handleErrors(messages, focusField) {
      if (focusField && focusField != null) {
          var doFocus = true;
          if (focusField.disabled || focusField.type == 'hidden') {
              doFocus = false;
          }
          if (doFocus && 
              focusField.style && 
              focusField.style.visibility &&
              focusField.style.visibility == 'hidden') {
              doFocus = false;
          }
          if (doFocus) {
              focusField.focus();
          }
      }
      alert(messages.join('\n'));
  }

  /**
   * Checks that the array element is a valid
   * Commons Validator element and not one inserted by
   * other JavaScript libraries (for example the
   * prototype library inserts an "extends" into
   * all objects, including Arrays).
   * @param name The element name.
   * @param value The element value.
   */
  function jcv_verifyArrayElement(name, element) {
      if (element && element.length && element.length == 3) {
          return true;
      } else {
          return false;
      }
  }

  /**
   * Checks whether the field is present on the form.
   * @param field The form field.
   */
  function jcv_isFieldPresent(field) {
      var fieldPresent = true;
      if (field == null || field == undefined) {
          fieldPresent = false;
      } else {
          if (field.disabled) {
              fieldPresent = false;
          }
      }
      return fieldPresent;
  }

  /**
   * Check a value only contains valid numeric digits
   * @param argvalue The value to check.
   */
  function jcv_isAllDigits(argvalue) {
      argvalue = argvalue.toString();
      var validChars = "0123456789";
      var startFrom = 0;
      if (argvalue.substring(0, 2) == "0x") {
         validChars = "0123456789abcdefABCDEF";
         startFrom = 2;
      } else if (argvalue.charAt(0) == "0") {
         validChars = "01234567";
         startFrom = 1;
      } else if (argvalue.charAt(0) == "-") {
          startFrom = 1;
      }

      for (var n = startFrom; n < argvalue.length; n++) {
          if (validChars.indexOf(argvalue.substring(n, n+1)) == -1) return false;
      }
      return true;
  }

  /**
   * Check a value only contains valid decimal digits
   * @param argvalue The value to check.
   */
  function jcv_isDecimalDigits(argvalue) {
      argvalue = argvalue.toString();
      var validChars = "0123456789";

      var startFrom = 0;
      if (argvalue.charAt(0) == "-") {
          startFrom = 1;
      }

      for (var n = startFrom; n < argvalue.length; n++) {
          if (validChars.indexOf(argvalue.substring(n, n+1)) == -1) return false;
      }
      return true;
  }
  
  function trim(value) { return value.replace(/^\s+|\s+$/, ''); };



//
//]]>
</script><script type="text/javascript">//<![CDATA[


    Form.focusFirstElement($('userForm'));
    highlightFormElements();
    
    function loadUserContext()
    {
        document.getElementById('userForm:loadUser').click()
      alert("hit");
    }
    

//
//]]>
</script>
            </div>

            
            


        </div>

        </div>
<div id="footer"><div style="width:940px;"><div style="float:left; width:440px; text-align:left;">Powered by Clear Profiling | 2013 © All Rights Reserved</div><div style="float:left; width:500px; text-align:right;"><a href="#">Contact</a>  |<a href="#">Privacy</a> | <a href="#">Home</a></div></div></div>